import Layout from '@/layout'

export default {
  path: '/employees', // 1. 访问/employees路由
  component: Layout, //  2. 显示layout
  name: 'employees',
  children: [
    {
      name: 'Employees',
      path: '', // 3. 同时也会匹配到默认子路由 所以会在layout显示默认子路由对应的组件
      component: () => import('@/views/employees'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      path: 'details/:id', // 3. 同时也会匹配到默认子路由 所以会在layout显示默认子路由对应的组件
      component: () => import('@/views/employees/empDetails'),
      hidden: true
    },
    {
      path: 'print/:id', // 3. 同时也会匹配到默认子路由 所以会在layout显示默认子路由对应的组件
      component: () => import('@/views/employees/print'),
      hidden: true
    }
  ]
}
